<div class="company" style="position:relative;" >
  <% new_or_existing = company.new_record? ? 'new' : 'existing' %>
  <% prefix = "complaint[#{new_or_existing}_companies][]" %>
  <% fields_for prefix, company do |company_form| -%>
    <label for="title">Company:</label><%= company_form.text_field :title -%><br />
    <label for="description">Description:</label><%= company_form.text_field :description -%><br />
    <span class="task"><%= link_to_function "remove" , "$(this).up('.company').remove()", :style=>"position:absolute;top:0px;right:3px;" %></span>
  <% end -%>
</div>
